home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000260_scottac@nb.sympatico.ca_Thu Mar 9 09:28:51 2006.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!panix!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!nf3.bellglobal.com!ursa-nb00s0.nbnet.nb.ca!53ab2750!not-for-mail
  2. From: "Scott Caissie" <scottac@nb.sympatico.ca>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: closing a macro completely upon connect
  5. Lines: 57
  6. X-Priority: 3
  7. X-MSMail-Priority: Normal
  8. X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
  9. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
  10. X-RFC2646: Format=Flowed; Original
  11. Message-ID: <uGRPf.40748$VV4.591414@ursa-nb00s0.nbnet.nb.ca>
  12. Date: Thu, 09 Mar 2006 08:28:10 GMT
  13. NNTP-Posting-Host: 156.34.15.45
  14. X-Complaints-To: abuse@aliant.net
  15. X-Trace: ursa-nb00s0.nbnet.nb.ca 1141892890 156.34.15.45 (Thu, 09 Mar 2006 04:28:10 AST)
  16. NNTP-Posting-Date: Thu, 09 Mar 2006 04:28:10 AST
  17. Organization: Aliant Internet
  18. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15510
  19.  
  20. Hi, I have a little problem with a macro I have. I get "Macros nested too 
  21. deeply" when used many times in a row.
  22. K95 2.1.3, wy370? I think is the layout.
  23.  
  24. I have a hotkey which runs a quick macro.
  25. It switches from the Terminal to the Command window to process the info. 
  26. Then when it is done, it goes back to the Terminal window via the Connect 
  27. command.
  28. (I know this is a bug. I'm still waiting for the fix, but this method has 
  29. been working for me in general. But seriously I want that fix so badly).
  30.  
  31. Now when I keep using the "same" macro over and over again, it seems that 
  32. its not closing properly.
  33. I get a message saying "Macros nested too deeply". It is doing this 
  34. predictably at 20 tries.
  35.  
  36.  
  37. I can't post the all the code here but I'll post how I'm starting/ending the 
  38. macro:
  39.  
  40. define XXXX {
  41. local \%x
  42. local \%y
  43. undeclare \&a
  44. undeclare \&b
  45. declare \&a[50]
  46. declare \&b[50]
  47. save terminal scrollback scroll.txt
  48. file count /lines
  49. fseek 0 /line \v(count)-30 (syntax might be off, I'm going from memory here. 
  50. its basically going to the last 30 lines of the file. The arrays are used to 
  51. store each line as well as additional info)
  52. ......
  53. can't really post whats here.
  54. ......
  55. file close all
  56. undeclare \&a
  57. undeclare \&b
  58. connect
  59. return
  60. }
  61.  
  62. Now the users never go to the Command window on their own. Nor are they ever 
  63. expected to. Pressing the hotkey basically makes the screen blink as it 
  64. switches to the command and back to the terminal in a split second.
  65.  
  66. The "Connect" command is basically disabling the the rest of the code from 
  67. doing its job while you are in the Terminal which includes it's own 
  68. completion. Altnernating macros seems to be ok. But using the same one over 
  69. and over is a problem.
  70.  
  71. I can't think of any other reason why I'm getting the "Macros nested too 
  72. deeply" error aside from the macros not ending right.
  73.  
  74. - Scott 
  75.  
  76.